package com.tsy.server.system.service.impl;

import com.tsy.server.system.entity.Role;
import com.tsy.server.system.mapper.RoleMapper;
import com.tsy.server.system.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色服务实现类
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<Role> getRoles() {
        return roleMapper.selectList(null);
    }
}